<?php

/*

Edit Buddy Note (buds_edit.php)

*/

$page_title = "Buds";
$rank_check = 1;
include "header.inc.php";

$buddy = fetch("SELECT bud_note FROM buds2 WHERE bud_me = '$userid' AND bud_you = '$bud'");
$findBuddy = fetch("SELECT display_name FROM members2 WHERE id = '$bud' AND game = '$game'");
$buddy[bud_note] = unsmilies($buddy[bud_note]);

ECHO <<<END

$openHTML
<br>
<center>
<P><TABLE BGCOLOR="$tableOutline" CELLSPACING=1 CELLPADDING=0 WIDTH=300>
   <TR BGCOLOR="$topAndBottomBG">
      <TD COLSPAN=2 HEIGHT=50>
         <p align=center class=white><FONT SIZE="+2"><B>--Edit Buddy Note--</B></FONT></p>
      </TD>
   </TR>
   <TR BGCOLOR="$maincellColor">
      <TD WIDTH=100 HEIGHT=25>
         <CENTER>Changing Note For:</CENTER>
      </TD>
      <TD HEIGHT=25>
         <P> <form action=$base_url/buds_edit.pro.php?game=$game&edit_bud=$bud method=post>$findBuddy[display_name]</P>
      </TD>
   </TR>
   <TR BGCOLOR="$middleBG">
      <TD WIDTH=100>
         <CENTER>Note:</CENTER>
      </TD>
      <TD>
         <P> <TEXTAREA NAME=edit_note ROWS=7 COLS=31 WRAP=virtual>$buddy[bud_note]</TEXTAREA></P>
      </TD>
   </TR>
   <TR BGCOLOR="$topAndBottomBG">
      <TD COLSPAN=2 HEIGHT=40>
         <CENTER><input type=submit name=Submit></form></CENTER>
      </TD>
   </TR>
</TABLE>
</P></CENTER>

$closeHTML

END;

?>